﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class gold_test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        CMSModel.CMSEntities dal1 = DAL.DBManager.GetCmsEmtity();
        var c = new CMSModel.eGold_WeekStocks();
        c.dailynews = "sdfasdlhfjkasdhfjka";
        c.dailyup = "fsdjkahfkasdf";
        c.dailydown = "falsdfja";
        c.date = DateTime.Now.Date;
        c.dayofweek = 23;
        c.createdate = System.DateTime.Now;
        dal1.eGold_WeekStocks.AddObject(c);



        dal1.SaveChanges();
    }
}